//
// Created by wwwsp on 5/2/2022.
//

#ifndef HW9_2_CHAR_QUEUE_H
#define HW9_2_CHAR_QUEUE_H
#include "common.h"

class Char_queue {
private:
    struct Node{
        char data;
        Node* next;
    };
    Node* head;
    Node* tail;
    int length;
public:
    Char_queue();
    bool isEmpty() const;
    bool isFull() const;
    char pool();            //出队
    void post(char data);   //入队
    void print();
    ~Char_queue();

};


#endif //HW9_2_CHAR_QUEUE_H
